Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@adapt-design-system/tokens
Advanced tools
Design Tokens for the ADAPT Design System
yarn add @adapt-design-system/tokens
#Example:
// FontSizes Tokens in package
export default [
{
name: 'uber',
value: 111,
unit: 'px',
lineHeight: 1.08,
},
{
name: 'hero',
value: 77,
unit: 'px',
lineHeight: 1.11,
},
// ...
];
import { FontSizes } from '@adapt-design-system/tokens';
// Take each font size and transform them to an object
const fontSizes = () => {
const output = {};
FontSizes.map(({ name, value, unit }) => (output[name] = `${value}${unit}`));
return output;
};
// Sample Output:
const fontSizes: {
uber: '111px',
hero: '77px'
}
/packages/adapt-design-system-tokens
folder).yarn install
yarn develop
The build will re-run every time you save changes to the tokens.
To publish a new version run yarn publish-package
. If you introduce a breaking change, bump the major version (2.0.3 -> 3.0.0). If you add new (non-breaking) functionality bump the minor version (2.0.3 -> 2.1.0). Otherwise bump patch when adding new icons (2.0.3 -> 2.0.4). You will be asked for a new version.
Don't forget to upgrade the consuming packages, in this case /packages/core
, to make use of the new version. Like so:
yarn upgrade @adapt-design-system/tokens@^2.0.4
FAQs
Design Tokens for the ADAPT Design System
The npm package @adapt-design-system/tokens receives a total of 0 weekly downloads. As such, @adapt-design-system/tokens popularity was classified as not popular.
We found that @adapt-design-system/tokens demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.